package com.zzy.product.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.UnsupportedEncodingException;
import java.util.Map;

/**
 * @Author kazu
 * @Date 2023/2/4 22:52
 * @Version 1.0
 */
@SuppressWarnings({"all"})
@FeignClient("gulimall-oss")
@Component
public interface OssClient {
	/**
	 * 用户获取签名，直传文件
	 */
	@GetMapping("/oss/oss/policy")
	public Map<String, Object> uploadFileToOss() throws UnsupportedEncodingException;
}
